cmake_minimum_required(VERSION 3.0) 
project(snake)

include_directories(./include)

#aux_source_directory(. SRCS)
#aux_source_directory(./src/ SRCS)
#aux_source_directory(./src/linux/ SRCS)

file(GLOB SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.c
               ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
               ${CMAKE_CURRENT_SOURCE_DIR}/src/linux/*.c)


message("MY_SOURCES: ${SRCS}")

link_libraries(ncurses)

set(CMAKE_CXX_FLAGS "-Dlinux")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build)

add_executable(snake_linux ${SRCS})

